//
//  YKCaptcha.h
//  YKCaptcha
//
//  Created by zhangcong on 2021/1/9.
//  Copyright © 2021 zhangcong. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSUInteger,CaptchaType){
    puzzle = 0,//滑动拼图
    clickword = 1//字符校验
};


@interface YKCaptcha : NSObject


/// 初始化SDK
/// @param app_key  用于统计不同App调用情况 由管理员提供 
+ (void)initWithAppKey:(NSString *)app_key;





/// 弹出验证框
/// @param type CaptchaType
/// @param successBlock  验证成功回调
+ (void)showWithType:(CaptchaType)type successBlock:(void(^)(NSString *result))successBlock;

@end


